package com.czk;

import java.lang.instrument.Instrumentation;

/**
 * @Author:ChenZhangKun
 * @Date: 2022/1/27 14:46
 */
public class MyPremainAgent {
    public static void premain(String agentArgs, Instrumentation inst) {
        System.out.println("premain");
        // 添加转换器
        inst.addTransformer(new FruitTransformer());
    }
}
